package com.infore.airsupervise.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.view.ViewGroup;

import java.util.List;

/**
 * @features: 继承自通用fragment适配器 的 主界面 fragment适配器
 * @author: WuTao
 * @date: 2017/4/25 11:31
 */
public class MainFragAdapter extends CacheFragAdapter {
    public MainFragAdapter(FragmentManager fm, List<Fragment> datas, String[] titles) {
        super(fm, datas, titles);
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {
        /**
         *mapview 所在的fragment不会destory
         */
        if(position == 0){
            return ;
        }else {
            super.destroyItem(container, position, object);
        }
    }
}
